﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name="MatHang")]
    public class CMatHang
    {
        #region Properties
        [Column(Name = "MaMatHang", IsPrimaryKey = true)]
        public ulong MaMatHang { get; set; }

        [Column(Name = "TenMatHang")]
        public ulong TenMatHang { get; set; }

        [Column(Name = "SoLuongTon")]
        public ulong SoLuongTon { get; set; }
        #endregion

        #region Constructor
        public CMatHang()
        { }

        public CMatHang(ulong tenmathang, ulong soluongton)
        {
            Initialize(tenmathang, soluongton);
        }

        public void Initialize(ulong tenmathang, ulong soluongton)
        {
            this.TenMatHang = tenmathang;
            this.SoLuongTon = soluongton;
        }
        #endregion
    }
}
